<lv-upload lvUrl='/sails/api/v1/upload' #fileupload [(lvFiles)]='files'
  lvAccept='image/jpeg,image/png' [lvContentTemplate]='contentTemplate'
   (lvChange)='change($event)' lvAutoUpload lvMultiple></lv-upload>

<div class='file-list'>
  <div *ngFor='let item of files'>
    <span>{{item.name}}</span>:<span>{{item.status}}</span>
  </div>
</div>

<ng-template #contentTemplate>
  <lv-group lvGutter='8px'>
    <button lv-button (click)='fileupload.selectFile()'>Add</button>
    <button lv-button (click)='fileupload.uploadFiles()' [disabled]='!fileupload.isUpload()'>Upload</button>
  </lv-group>
</ng-template>
